<?php

require_once 'vendor/Cassandra-PHP-Client-Library/Cassandra.php';


$servers = array(
		array(
				'host' => 'localhost',
				'port' => 9160,
				'use-framed-transport' => true,
				'send-timeout-ms' => 1000,
				'receive-timeout-ms' => 1000
		)
);

$cassandra = Cassandra::createInstance($servers);

$cassandra->setMaxCallRetries(5);

/*    // at any point in code, you can get the named singleton instance, the name
    // again defaults to "main" so no need to define it if using single instance
$cassandra2 = Cassandra::getInstance();

*/
$cassandra->useKeyspace('MyAlcohoList');